<template>
	<view>
		<pageEmptyVue  v-if="list.length==0" text="暂无收益明细"></pageEmptyVue>
		<view class="content" v-else v-for="(item,index) in list" :key="index">
			<view class="leftbox" >
				<view class="sill">{{item.TypeName}}</view>
				<view class="sill">{{item.ShopName}}</view>	
				<view class="time">{{item.SRTime}}</view>
			</view>
			<view class="rightbox">¥ {{item.ShopMoney}}</view>
		</view>
	</view>
</template>

<script>
	import pageEmptyVue from '@/components/pageEmpty/pageEmpty'
	export default {
		components: {
			pageEmptyVue
		},
		data() {
			return {
				list: [],
				PageSize:10,
				pageIndex:1,
			}
		},
		onLoad(options) {
			if(options.ShopID){
				this.getList(options.ShopID)
			}
		},
		methods: {
			async getList(id){
				let res =await this.$api.post('RevenueRecords/GetMerchantIncome',{ShopID:id,pageSize:this.PageSize,PageNumber:this.pageIndex})
				this.list=res.data
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		// background-color: #b6b6b6;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 30rpx;
		padding: 26rpx;
		border-bottom: 1rpx solid #E4E4E4;

		.leftbox {

			.sill {
				font-size: 28rpx;
				font-weight: bold;
				color: #333333;
				margin-bottom: 8rpx;
			}

			.time {
				font-size: 24rpx;
				color: #999999;
			}
		}

		.rightbox {
			font-size: 28rpx;
			color: #706EEE;
		}
	}
</style>